﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Function;
using BLL;
using Model;

namespace UI.UserControl.UI
{
    public partial class MainSite : System.Web.UI.MasterPage
    {
        MessageBox box = new MessageBox();
        protected void Page_Load(object sender, EventArgs e)
        {
            ST_Investor model=new ST_InvestorBLL().GetModel(Method.CurrentUserID);
            this.lblName.Text = model.Name+"("+model.Email+")";
            //if (model.LoginPWChanged == 1)
            //{
            //    //box.ErrorBox(this, "您还未修改过登录密码，为了您的账户安全，请尽快修改登录密码！");
            //    MessageBox_Page McBx = new MessageBox_Page();//实例化对话框
            //    string RemarkString;
            //    RemarkString = "您还未修改过登录密码，为了您的账户安全，请尽快修改登录密码！";

            //    McBx.Title = "系统提示";
            //    McBx.AddContent(RemarkString);
            //    McBx.Type = MsgType.Error;
            //    McBx.AddUrl("返回", "../../Module/User/ChangePasswd.aspx", UrlType.Href);
            //    MessageEvent.MessageBox(McBx, "../../ErrorPage/ShowMsg.aspx");
            //}
        }
    }
}